<?php
class indexAction extends Action
{
	public function execute()
	{
		SessionAdapter::init(Config::$array['session']['settings'],Config::$array['session']['options']);
		SessionAdapter::start();
		if(!isset($_SESSION['myvar'])){
			echo 'u r 1st got here.';
			$_SESSION['myvar']=2;
		}else{
			if($_SESSION['myvar']>9){
				SessionAdapter::destroy();
				echo 'matrix reload';
			}else{
				echo 'u r #'.$_SESSION['myvar'].' got here.';
				$_SESSION['myvar']++;
			}
		}
	}
}
